//classe de auxilio para trabalhar com html
Events = {};

Events.addEvent = function (id, type, module, runat)
{
	
	switch(type)
	{
		case "click":
			this.click(id,module , runat);
		break;
		
		case "dblclick":
			this.dblClick(id, module , runat);
		break;
		
		case "change":
			this.change(id, module, runat);
		break;
	}
}

Events.click = function (id, module ,runat)
{
	$(id).click(function () 
	{ 	
		 Call.callEvent(module, $(this), runat);
	});
}

Events.dblClick = function (id, module, runat)
{
	$(id).dblclick(function () 
	{ 
    	 Call.callEvent(module, $(this), runat);
	});
}

Events.change = function (module,id, runat)
{	
	$(id).change(function () {
   	    var arrParams = {
         valueid: $(this).val()
        };        
        Call.callEvent(module, $(this), runat, arrParams);
      });
}

